im = np.ones([80,80,3])*0.0
    im2 = np.ones([80, 80, 3]) * 0.0
    lastxi = 0
    lastyi = 0
    f = False
for (xi, yi,ti) in zip(x, y,t):
        tim = ti.split(":")
        xi = xi - 104.03
        xi = int(xi*1000)
        yi = yi -30.620
        yi = int(yi*1000)
        if not f:
            f = True
        else:
            l2 =math.pow((lastxi - xi),2) + math.pow((lastyi - yi),2)
            if l2 > 100:
                print id+":"+str(l2)
                return
            #if abs(lastxi - xi) > 10 or abs(lastyi - yi) > 10:
                #print id + ":" + str(lastxi - xi)+":" +str(lastyi - yi)
                #return
        #im[xi,yi] = (int(tim[0])-6)*12 + int(tim[1])/5
        im[xi, yi] = int(tim[0])/24.0
        im2[xi, yi] = 1
        lastxi = xi
        lastyi = yi
        #im[xi, yi] = 255 - im[xi,yi]
        #print im[xi,yi]
    #print im
    #imshow(im)
    #show()

    non0 = np.nonzero(im)
    if len(non0[0]) < classify*1.5:
        return

    if not os.path.exists(path1 +str(classify)):
        os.makedirs(path1 +str(classify))
    if not os.path.exists(path2 +str(classify)):
        os.makedirs(path2 +str(classify))

    print "saving " + str(classify) + "\\" + id + ".jpg"
    imsave(path1 + str(classify) + "\\" + id + ".jpg", im2)  # white map
    imsave(path2 + str(classify) + "\\" + id + ".jpg", im)   # gray map